W2. Inner Product Geometry

Author

Salman Ahmadi-Asl

Published

September 18, 2025

1. Theory

1.1 The Inner Product

An inner product is a generalized concept that defines a way to multiply two vectors to produce a scalar (a single number). It is a function that takes two vectors and returns a single value, and it allows us to introduce geometric concepts like length and angle into abstract vector spaces. The standard dot product is the most common example of an inner product. For a function to be considered an inner product, it must satisfy four key properties for any vectors , , and any scalar :

  1. Symmetry: The order of vectors doesn’t matter. .
  2. Linearity: A scalar multiple can be factored out. .
  3. Additivity: The product distributes over vector addition. .
  4. Positive Definiteness: The inner product of a vector with itself is always non-negative, and it is zero if and only if the vector is the zero vector. and .

A vector space equipped with an inner product is called an inner product space.

1.2 The Dot Product

The dot product (also known as the Euclidean inner product) is the standard way to combine two vectors to produce a scalar. It has two primary definitions: an algebraic one and a geometric one. Both yield the same result.

1.3 Algebraic Definition of the Dot Product

The algebraic definition is calculated by multiplying the corresponding components of two vectors and summing the results. For two vectors and in , the dot product is: For example, in 3D space, if and , then .

1.4 Geometric Definition and Connection to the Law of Cosines

The geometric definition relates the dot product to the magnitudes (lengths) of the vectors and the angle between them. For two vectors and , with an angle between them: Here, denotes the magnitude of vector . This definition is powerful because it connects a simple algebraic operation to a fundamental geometric property (the angle) and helps us understand how “aligned” two vectors are. This formula can be derived directly from the Law of Cosines. Consider a triangle formed by vectors , , and their difference . The Law of Cosines states: Expanding the left side using the dot product gives . By equating the two expressions, we arrive at the geometric definition of the dot product.

The sign of the dot product tells us about the angle :

  • If , then , so the angle is acute ().
  • If , then , so the angle is obtuse ().
  • If , then , so the angle is right ().
1.5 Orthogonality

Two non-zero vectors are orthogonal (perpendicular) if and only if their dot product is zero. This is one of the most important applications of the dot product.

1.6 Vector Norm and Its Properties

The dot product defines the norm (or length) of a vector, which is called the induced norm. The norm of a vector is the square root of the dot product of the vector with itself. From the algebraic definition, for , this is the familiar distance formula: . This norm satisfies several key properties:

  1. Non-negativity: .
  2. Point-separating: .
  3. Absolute homogeneity: .
  4. Triangle Inequality: . This states that the length of the sum of two vectors is less than or equal to the sum of their individual lengths.
1.7 Key Inequalities and Identities

The properties of the inner product lead to several fundamental results:

  • Cauchy-Schwarz Inequality: This inequality provides an upper bound on the magnitude of the dot product of two vectors: . It is one of the most important inequalities in mathematics.
  • Parallelogram Law: This law relates the lengths of the sides of a parallelogram to the lengths of its diagonals: .
1.8 Projections

Projections describe how much of one vector points in the direction of another, essentially casting a “shadow”.

1.8.1 Scalar Projection

The scalar projection of vector onto vector is the signed length of the component of that lies in the direction of . This value is a scalar. It is positive if the projection points in the same direction as and negative if it points in the opposite direction.

1.8.2 Vector Projection

The vector projection is the actual vector that represents the shadow. It has the magnitude of the scalar projection and the direction of . The term in parentheses is a scalar that scales the vector .

1.9 Decomposing a Vector

Any vector can be uniquely decomposed into two orthogonal components relative to another non-zero vector :

  1. A component parallel to : .
  2. A component orthogonal to : . The sum of these two components gives back the original vector: .
1.10 Direction Cosines

For a vector in 3D space, the angles it forms with the positive x, y, and z axes are denoted , , and , respectively. The cosines of these angles are called direction cosines and can be found using the dot product:

  • These cosines are related by the identity:

2. Definitions

  • Inner Product: A function that takes two vectors and produces a scalar, satisfying the properties of symmetry, linearity, additivity, and positive definiteness.
  • Inner Product Space: A vector space that has an inner product defined on it.
  • Dot Product: The most common type of inner product, calculated as the sum of the products of corresponding vector components ().
  • Orthogonal Vectors: Two vectors whose dot product is zero, indicating they are perpendicular to each other.
  • Norm (Vector Length): The magnitude of a vector, calculated as the square root of the dot product of the vector with itself ().
  • Scalar Projection: The signed length of the projection of one vector onto another, resulting in a scalar value.
  • Vector Projection: The vector that represents the “shadow” of one vector onto another. It is parallel to the vector being projected upon.
  • Cauchy-Schwarz Inequality: A fundamental theorem stating that the absolute value of the dot product of two vectors is less than or equal to the product of their norms.
  • Triangle Inequality: A property of norms stating that the norm of a sum of two vectors is no greater than the sum of their individual norms.
  • Parallelogram Law: An identity relating the sum of the squares of the lengths of a parallelogram’s sides to the sum of the squares of its diagonals.

3. Formulas

  • Algebraic Dot Product:
  • Geometric Dot Product:
  • Dot Product with Scalar Multiplication:
  • Distributive Property of Dot Product:
  • Dot Product and Norm:
  • Vector Norm:
  • Angle Between Vectors:
  • Orthogonality Condition:
  • Vector Projection:
  • Scalar Projection (Component):
  • Vector Decomposition: , where and
  • Parallelogram Law:
  • Direction Cosines:
  • Direction Cosines Identity:
  • Vector Between Two Points:
  • Median Vector:

4. Practice

4.1. Evaluate a Vector Expression (Lab 2, Task 1)

Evaluate ²² given that , , and the angle .

Click to see the solution
  1. Find the dot product: First, calculate the value of using the formula .
    • .
    • .
  2. Substitute the values into the expression: Now substitute the given magnitudes and the calculated dot product into the expression.
    • Expression = ²²
    • ²²
  3. Simplify and calculate:
    • .
Answer: The value of the expression is .
4.2. Find the Angle Between Vectors (Lab 2, Task 2)

Find the angle between the vectors and .

Click to see the solution
  1. Calculate the dot product:
    • .
  2. Calculate the magnitudes of the vectors:
    • ²²².
    • ²²².
  3. Use the angle formula: .
    • .
  4. Find the angle:
    • .
Answer: The angle is , which is approximately .
4.3. Prove Vector Perpendicularity (Lab 2, Task 3)

Prove that vectors and are perpendicular to each other.

Click to see the solution
  1. Recall the condition for perpendicularity: Two vectors are perpendicular if their dot product is zero. We need to show that .
  2. Apply the distributive property of the dot product:
  3. Treat scalar products as scalars: The terms and are scalar values. We can rearrange the order of multiplication.
  4. Use the commutative property of the dot product: and .
  5. Simplify the expression: The two terms are identical, so their difference is zero.
Answer: Since the dot product of the two vectors is , they are perpendicular.
4.4. Calculate a Sum of Dot Products (Lab 2, Task 4)

All three vectors , , and have length and . Find .

Click to see the solution
  1. Start with the given vector sum: .
  2. Take the dot product of the equation with itself:
    • .
  3. Expand the left side:
    • .
  4. Simplify and group terms: Using ² and the commutative property ():
    • ²²².
    • ²²².
  5. Substitute the known magnitudes: We are given .
    • ²²².
    • .
    • .
  6. Solve for the desired expression:
    • .
    • .
Answer: .
4.5. Find an Unknown Vector (Lab 2, Task 5)

There are two vectors and . A third vector has length equal to . The vector is perpendicular to . The angle between and is . Find the coordinates of . How many solutions does the task have?

Click to see the solution
  1. Set up equations from the given conditions: Let .
    • Condition 1: ²²².
    • Condition 2: .
    • Condition 3: Angle between and is .
  2. Process the third condition:
    • ²²².
    • (given).
    • .
    • So, .
    • .
  3. Solve the system of three equations:
    • Eq 1: ²²²
    • Eq 2:
    • Eq 3:
  4. Substitute Eq 2 into Eq 3:
    • .
  5. Substitute z back into the expression for y (Eq 2):
    • .
  6. Substitute y and z in terms of x into Eq 1:
    • ²²².
    • ²²².
    • Multiply by 4: ²²².
    • Combine terms: ².
    • ².
  7. Find the possible values for x:
    • Solution A: .
    • Solution B: .
  8. Calculate y and z for each solution:
    • For Solution A (x = 0):
      • .
      • .
      • .
    • For Solution B ():
      • .
      • .
      • .
Answer: There are two solutions for the vector :
4.6. Dot Product in R³ (Lecture 2, Example 1)

Calculate the dot product of and .

Click to see the solution
  1. Use the formula for dot product: For two vectors in ³, and , the dot product is .
  2. Substitute the components:
    • .
  3. Calculate the result:
    • .
Answer: The dot product is .
4.7. Dot Product Cancellation (Lecture 2, Example 2)

Assume , and are three nonzero vectors. If , is it true to say ?

Click to see the solution
  1. Rearrange the equation: Start with the given equation and move all terms to one side.
  2. Apply the distributive property: The dot product is distributive over vector subtraction.
  3. Interpret the result: This equation means that the vector is orthogonal (perpendicular) to the vector .
  4. Conclusion: The fact that is orthogonal to does not require to be the zero vector. It only requires them to be at a 90-degree angle. Therefore, does not necessarily equal .
Answer: No, it is not true. For a counterexample, let , , and . Then and . So , but clearly .
4.8. Vector Operations (Lecture 2, Example 3)

Given , , and , find .

Click to see the solution
  1. Use the scalar multiplication property: The dot product has the property that .
  2. Apply the property: .
  3. Substitute the given value: We are given that .
    • .
Answer: .
4.9. Vector Operations (Lecture 2, Example 4)

Given , , and , find .

Click to see the solution
  1. Use the distributive property: The dot product distributes over vector addition: .
  2. Substitute the given values: We are given that and .
    • .
Answer: .
4.10. Vector Operations (Lecture 2, Example 5)

Given , , and , find .

Click to see the solution
  1. Use the scalar multiplication property: .
  2. Relate dot product to magnitude: The dot product of a vector with itself is the square of its magnitude: ².
  3. Substitute into the expression: ².
  4. Substitute the given value: We are given that .
    • ².
Answer: .
4.11. Parallelogram Law (Lecture 2, Example 6)

Given two vectors and , what is ²²?

Click to see the solution
  1. Expand the terms: Use the property that ².
    • ²²²
    • ²²²
  2. Add the expanded expressions:
    • ²²²²
  3. Simplify: The terms and cancel out.
    • ²²²²²²
Answer: ²²
4.12. Find the Angle Between Vectors (Lecture 2, Example 7)

Find the angle between and .

Click to see the solution
  1. Compute dot product: .
  2. Compute magnitudes:
    • ²².
    • ²².
  3. Use the angle formula: The cosine of the angle between two vectors is given by .
    • .
  4. Find the angle: .
    • .
Answer: The angle is approximately .
4.13. Determine if Vectors are Orthogonal (Lecture 2, Example 8)

Determine if the vectors and are orthogonal.

Click to see the solution
  1. Recall the condition for orthogonality: Two vectors are orthogonal if their dot product is zero.
  2. Compute the dot product:
    • .
Answer: The dot product is , so the vectors are Orthogonal.
4.14. Determine if Vectors are Orthogonal (Lecture 2, Example 9)

Determine if the vectors and are orthogonal.

Click to see the solution
  1. Recall the condition for orthogonality: Two vectors are orthogonal if their dot product is zero.
  2. Compute the dot product:
    • .
Answer: The dot product is , so the vectors are Orthogonal.
4.15. Determine if Vectors are Orthogonal (Lecture 2, Example 10)

Determine if the vectors and are orthogonal.

Click to see the solution
  1. Recall the condition for orthogonality: Two vectors are orthogonal if their dot product is zero.
  2. Compute the dot product:
    • .
Answer: The dot product is (not ), so the vectors are Not Orthogonal.
4.16. Find the Vector Projection (Lecture 2, Example 11)

Find the vector projection of onto .

Click to see the solution
  1. State the projection formula: The projection of vector onto vector is given by: ².
  2. Compute the dot product: .
  3. Compute the squared magnitude of w: ²²².
  4. Substitute into the formula:
    • .
  5. Simplify and calculate:
    • .
Answer: The vector projection is .
4.17. Find the Angle in a Triangle (Tutorial 2, Task 1)

Given points , , and , find the measure of angle .

Click to see the solution
  1. Define the vectors: The angle is at vertex B, so we need the vectors originating from B.
  2. Calculate the dot product:
  3. Calculate the magnitudes:
    • ²²
    • ²²
  4. Use the angle formula:
  5. Find the angle:
Answer: The measure of angle is approximately .
4.18. Find an Unknown Vector Component (Tutorial 2, Task 2)

Find the value of such that the vectors and are orthogonal.

Click to see the solution
  1. Set the dot product to zero: Two vectors are orthogonal if their dot product is .
  2. Calculate the dot product in terms of x:
  3. Solve the equation for x:
    • ²
    • ²
    • ²
Answer: The values of are and .
4.19. Prove the Identity for Direction Cosines (Tutorial 2, Task 3)

Suppose that a non-zero vector makes angles , , and with the positive X, Y, and Z axes, respectively. Prove that ²²².

Click to see the solution
  1. Define the direction angles: The angle between the vector and the positive X-axis (represented by the standard basis vector ) is . Similarly, is the angle with , and is the angle with .
  2. Express cosines using the dot product formula: From the formula , we can find the cosine of each angle.
  3. Substitute into the identity:
    • ²²²²²²
  4. Simplify the expression:
    • ²²²²²²
    • ²²²²
  5. Use the definition of magnitude: The magnitude of is ²²², so ²²²².
    • ²²
Answer: The identity ²²² is proven.
4.20. Prove the Law of Cosines using Vectors (Tutorial 2, Task 4)

For any triangle with side lengths and angle opposite side , prove the Law of Cosines: ²²².

Click to see the solution
  1. Represent the triangle with vectors: Let two sides of the triangle be represented by vectors and , with lengths and . Let the angle between them be . The third side, , can be represented as the vector difference , and its length is .
  2. Use the dot product to find the squared length of C:
    • ²²
  3. Substitute and expand:
    • ²
    • ²
  4. Simplify using dot product properties: Since and ²:
    • ²²²
  5. Substitute the geometric definition of the dot product: We know that .
    • ²²²
Answer: Rearranging the terms gives the Law of Cosines: ²²².
4.21. Find the Vector Projection (Tutorial 2, Task 5)

Find the vector projection of onto .

Click to see the solution
  1. Recall the projection formula: ².
  2. Calculate the dot product:
    • .
  3. Calculate the squared magnitude of b:
    • ²²².
  4. Substitute the values into the formula:
  5. Simplify and calculate:
    • .
Answer: The vector projection is .
4.22. Find the Scalar Component (Tutorial 2, Task 6)

Find the scalar component of in the direction of .

Click to see the solution
  1. Recall the scalar component formula: The scalar component of on is given by .
  2. Calculate the dot product:
    • .
  3. Calculate the magnitude of b:
    • ²²².
  4. Divide the dot product by the magnitude:
    • .
Answer: The scalar component is .
4.23. Decompose a Vector (Tutorial 2, Task 7)

Decompose the vector into two vectors, one parallel to and one orthogonal to it.

Click to see the solution
  1. Find the parallel component: The component of parallel to () is the vector projection of onto .
    • ².
  2. Calculate the necessary values:
    • .
    • ²²²².
  3. Calculate the parallel vector:
    • .
  4. Find the orthogonal component: The component of orthogonal to () is the remaining part of .
    • .
  5. Calculate the orthogonal vector:
    • .

Answer:

  • The vector parallel to is .
  • The vector orthogonal to is .
4.24. Vector Dot Product in a Triangle with a Median (Homework 2, Task 1)

In triangle ABC, the median AD is divided into three equal segments: AE, EF and FD. Given:

Find .

Click to see the solution
  1. Establish a vector basis: Let point A be the origin. We can define the vectors representing the sides of the triangle as and .
  2. Express points D, E, and F in terms of the basis:
    • Since AD is the median, D is the midpoint of BC. Thus, .
    • The median AD is divided into three equal parts, so .
    • Similarly, .
  3. Use the given information to find relationships between b and c:
    • First given: .
      • .
      • .
      • .
    • Second given: .
      • .
      • .
      • .
      • .
      • .
      • Substitute : .
      • .
      • .
  4. Calculate the required dot product: We need to find .
    • .
    • .
    • .
    • .
    • .
    • .
  5. Substitute the derived values:
    • .
    • .
    • .
Answer: .